import request from '@/utils/request'

// 获取openid
export function getOpenid(data = {}) {
  return request({
    url: '/wx/check/getOpenId',
    method: 'post',
    data
  })
}

// 初始化
export function getJspToken(data) {
  return request({
    url: '/wx/check/getSignature',
    method: 'post',
    data
  })
}

// 下单
export function createJsApiOrder(data = {}) {
  return request({
    url: '/wx/pay/createJsApiOrder',
    method: 'post',
    data
  })
}

